package mango.web.client.admin;

import java.util.List;
import java.util.Map;

import mango.web.client.C;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("AdminViewS")
public interface AdminViewI extends RemoteService {
	public C view();

	public MemberVo viewMember(String memberId);

	public MemberVo viewMemberSearch(AdminSearchVo adminSearchVo);

	public MemberVo viewMemberSaveMail(MemberVo memberVo);

	public MemberVo viewMemberSave(MemberVo memberVo);

	public MemberVo viewMemberAdd(MemberVo memberVo);

	public MemberVo viewMemberRemove(MemberVo memberVo);

	public MemberVo viewMemberActive(MemberVo memberVo);

	public MemberVo viewContactAdd(MemberVo memberVo);

	public MemberVo viewContactRemove(MemberVo memberVo, String contactId);

	public MemberVo viewContactActive(MemberVo memberVo, String contactId);

	public MemberVo viewOrchardAdd(MemberVo memberVo);

	public MemberVo viewOrchardRemove(MemberVo memberVo, String orchardId);

	public MemberVo viewOrchardActive(MemberVo memberVo, String orchardId);

	public MemberVo viewTreeAdd(MemberVo memberVo, Integer orchardId);

	public MemberVo viewTreeRemove(MemberVo memberVo, Integer treeId);

	public List<VarietyVo> viewVariety();

	public List<VarietyVo> viewVarietySave(List<VarietyVo> varietyList);

	public List<VarietyVo> viewVarietyAdd();

	public List<VarietyVo> viewVarietyRemove(Integer varietyId);

	public List<RegionVo> viewRegion();

	public List<RegionVo> viewRegionSave(List<RegionVo> regionList);

	public List<RegionVo> viewRegionAdd();

	public List<RegionVo> viewRegionRemove(Integer regionId);

	public List<FlowerVo> viewFlowerSave(String memberId, List<FlowerVo> flowerList);

	public Map<String, Map<String, FlowerChartVo>> viewFlowerChart(List<String> regionIdList);

	public MemberPropertyVo viewMemberPropertyVo();

	public MemberPropertyVo saveMemberPropertyVo(MemberPropertyVo memberPropertyVo);

	public EmailVo viewEmailVoSend(EmailVo emailVo, int emailIndex, int smsIndex);

	public List<EmailVo> viewEmailVoList();

	public List<EmailVo> viewEmailVoListReloadFull(List<String> memberIdList);
	
	public List<EmailVo> viewEmailVoListReload(String type);

	public List<LookupTVo> viewLookupTSave(List<LookupTVo> lookupTList);

	public String viewTemperatureSave(TemperatureUrlVo temperatureUrlVo);

	public List<EmailContentVo> viewEmailContentVoListSave(List<EmailContentVo> emailContentList);
	
	public List<SmsContentVo> viewSmsContentVoListSave(List<SmsContentVo> smsContentList);
	
	//////////////////////////////////
	public String sendSMS(String number, String msg);
	
	public LoginVo login(String username, String password);
	
	public String viewMemberExport(List<String> memberIdList);
}
